import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import Register from "../components/Register";
import Login from "../components/Login";
import WeiboCallback from "../components/WeiboCallback";
import Weibo_bind from "../components/Weibo_bind";
import Index from "../components/Index";
import Upd from "../components/Upd";

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    },
    {
      path: '/reg',
      name: 'Register',
      component: Register
    },
    {
      path: '/log',
      name: 'Login',
      component: Login
    },
    {
      path: '/weibo_callback',
      name: 'WeiboCallback',
      component: WeiboCallback
    },
    {
      path: '/weibo_bind',
      name: 'Weibo_bind',
      component: Weibo_bind
    },
    {
      path: '/index',
      name: 'Index',
      component: Index
    },
    {
      path: '/upd',
      name: 'Upd',
      component: Upd
    }
  ]
})
